// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from "@/utils/request";

// 跟单模板列表
export function getTemplate(params) {
  return request({
    url: "/followmessagerule/list",
    method: "get",
    params,
  });
}
/*
 * 添加邮件
 */
export function saveTemplate(data) {
  return request({
    url: "/followmessagerule/save",
    method: "post",
    data,
  });
}
/*
 * 修改邮件
 */
export function updateTemplate(data) {
  return request({
    url: "/followmessagerule/update",
    method: "post",
    data,
  });
}
/*
 * 删除邮件
 */
export function deleteTemplate(data) {
  return request({
    url: "/followmessagerule/delete",
    method: "post",
    data,
  });
}
